include ../Makefile.include

version   := 2.6.35.10
build_dir := linux-$(version)
source    := $(build_dir).tar.bz2

$(build_dir)/.config: $(source)
	rm -rf $(build_dir)
	tar jxvf $(source)
	cp -f kernel_config $(build_dir)/.config
	cp -f kernel_makefile $(build_dir)/Makefile
	make -C $(build_dir) oldconfig

$(package): $(build_dir)/.config
	-rm -rf tmp
	mkdir tmp
	make -j4 V=1 -C $(build_dir) modules
	make V=1 -C $(build_dir) INSTALL_MOD_PATH=`pwd`/tmp modules_install
	tar -C tmp -cpzf $@ .

bzImage: $(build_dir)
	make -j4 V=1 -C $(build_dir)

clean: $(software)_clean
	-rm -rf $(build_dir)

